GBML manual / Constants

ROOM_LAYER_MAIN

The room’s own tiles - the layer with the collision, and the one tile_index and tile_set_index mean when they are given no layer.

Game Boy: not available

Game Boy Color: not available

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

ROOM_LAYER_MAIN: constant

Description

Names the room's own tiles, the Main layer: the layer with the collision, and the one tile_index and tile_set_index mean when they are given no layer. Every room has it.

Example

room_layer_scroll_speed(ROOM_LAYER_MAIN, 100, 100);

Puts the room's own tiles back to moving with the camera.

See also: ROOM_LAYER_FRONTROOM_LAYER_BACKroom_layer_scroll_speedroom_layer_visibletile_indextile_set_index